#include <iostream>
#include <windows.h>
#include "GlGameInterface.h"
#include "SmGame.h"
#include "SmTest.h"
#include "UtilityAssert.h"

#ifdef _DEBUG
int main()
#else
#include <windows.h>

int WINAPI wWinMain(
    HINSTANCE hInstance,
    HINSTANCE hPrevInstance,
    LPWSTR lpCmdLine,
    int nCmdShow)
#endif
{
	try
	{
		//GraphicLibrary::GameInterface::GetSingleton()->run(SneakingMission::TestGame::GetSingleton());
		GraphicLibrary::GameInterface::GetSingleton()->run(SneakingMission::Game::GetSingleton());
	}
	catch(Utility::Exception *e)
	{
		MessageBox(0, e->getMessage(), "Assert", MB_OK | MB_ICONERROR);
		delete e;
	}
	return 0;
}